<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="head">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top"><h1 class="fl"><a href="indexdo">Haust电子书城</a></h1>
            <div class="fr clearfix" id="top1">
	            <p class="fl">
	            	<c:if test="${isLogin!=1}">
	            		<a href="login.jsp" id="login">登录</a>
	            		<a href="reg.jsp" id="reg">注册</a>
	            	</c:if>
	            	
	            	<c:if test="${isLogin==1}">
	            		<b>你好,</b><a href="login.jsp" id="login">${user.username}</a>
	            	</c:if>
	            	
	            	<c:if test="${sessionScope.isAdminLogin==1}">
	            		<a href="/CourseDesign4/manage/admin_index.jsp" id="login">进入后台</a>
	            	</c:if>
	            </p>
                <form action="#" method="get" class="fl"><input type="text" placeholder="热门搜索：Java"/><input
                        type="button"/></form>
                <div class="btn fl clearfix">
                	<a href="mygxin.jsp"><img src="img/grzx.png"/></a>
                	<a href="#" class="er1"><img src="img/ewm.png"/></a>
                	<c:if test="${isLogin==1}">
                		<a href="showcart"><img src="img/gwc.png"/></a>
                	</c:if>
                    <p><a href="#"><img src="img/smewm.png"/></a></p>
                </div>
            </div>
        </div>
        <ul class="clearfix" id="bott">
            <li><a href="/CourseDesign4/indexdo">首页</a></li>
            
            <!-- <li><a href="flowerDer.html">装饰摆件</a>
                <div class="sList2">
                    <div class="clearfix">
	                    <a href="proList.html">干花花艺</a>
	                    <a href="vase_proList.html">花瓶花器</a>
                    </div>
                </div>
            </li> -->
           
           <c:forEach items="${flist}" var="f">
           		<li><a href="/CourseDesign4/selectproductlist?fid=${f.id}">${f.name}</a>
                <div class="sList2">
                    <div class="clearfix">
	                    <c:forEach items="${clist}" var="c">
	                    	<c:if test="${c.parent_id==f.id}">
	                    		<a href="/CourseDesign4/selectproductlist?cid=${c.id}">${c.name}</a>
	                    	</c:if>
	                    </c:forEach>
                    </div>
                </div>
            </li>
           </c:forEach>
           	
           <!--  <li><a href="paint.html">墙式壁挂</a></li>
            <li><a href="perfume.html">蜡艺香薰</a></li>
            <li><a href="idea.html">创意家居</a></li> -->
        </ul>
    </div>
</div>